package com.hqyj.springboot;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

import java.net.InetAddress;

@SpringBootApplication
@ServletComponentScan
public class Application  extends SpringBootServletInitializer {


   
    public static void main(String[] args) {
        SpringApplication.run(Application.class , args);
//        try {
//            InetAddress address = InetAddress.getLocalHost();
//            System.out.println("Local HostAddress: "+address.getHostAddress());
//            Runtime.getRuntime().exec("cmd   /c   start   http://"+address.getHostAddress()+":8081"+"/account/login");
//        } catch (Exception ex) {
//            ex.printStackTrace();
//        }

    }

}
